

import java.io.IOException;
import java.io.PrintWriter;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;

import bit.mybatis.dao.MemDTO;

/**
 * Servlet implementation class Slet25
 */
public class Slet25 extends HttpServlet {
	protected void service(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException {
		HttpSession session = req.getSession(true);
		MemDTO dto = null;
		if(session.getAttribute("dto")!=null){
			dto = (MemDTO)session.getAttribute("dto");
		}		
		res.setContentType("text/html; charset=euc-kr");
		PrintWriter out = res.getWriter();
		out.println("===Slet25===<br/>");
		out.println(dto.getId()+"<br/>");
		out.println(dto.getName()+"<br/>");
		out.println(dto.getAddr()+"<br/>");
		out.println(dto.getTel());
	}
}
